from rest_framework import serializers
import models

class PostSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Posts
        fields = ('author', 'title', 'summary')


class TermSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Term
        fields = ('name', 'slug')

class LinkSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Links
        fields = ('url', 'name', 'description', 'visable')